package com.example.inprinciple.bridge;

/**
 * 创建日期：2022/6/4 0004 11:38
 *
 * @author tony.sun
 * 类说明：
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("-----------折叠手机------------");
        System.out.println("-----------小米手机------------");
        Phone phone = new FoldPhone(new Xiaomi());
        phone.open();
        phone.close();
        phone.call();
        System.out.println("-----------Vivo手机------------");
        Phone phone2=new FoldPhone(new Vivo());
        phone2.open();
        phone2.close();
        phone2.call();
        //全屏手机
        System.out.println("-----------全屏手机------------");
        Phone phone3 = new FullScreenDesign(new Xiaomi());
        phone3.open();
        phone3.close();
        phone3.call();

    }
}
